package com.netease.nie.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.DrawLotteryActivityMapper;
import com.netease.nie.model.DrawLotteryActivity;

/**
 * 抽奖活动数据操作
 * @author gzlibingjie
 */
@Repository
public class DrawLotteryActivityDao {
	
	@Resource
	private DrawLotteryActivityMapper drawLotteryActivityMapper;
	
	public List<DrawLotteryActivity> queryAll() {
		return drawLotteryActivityMapper.queryAll();
	}
	
	public DrawLotteryActivity queryById(Integer id) {
		return drawLotteryActivityMapper.queryById(id);
	}
	
	public int addDrawUserPt(Integer id) {
		return drawLotteryActivityMapper.addDrawUserPt(id);
	}
	
	public int addPrizeTimes(Integer id) {
		return drawLotteryActivityMapper.addPrizeTimes(id);
	}

}
